<?php
$isReloadable = false;
$isPopUp = true;
require_once("../../pers/inc.config.php");
require_once('../_inc/inc.session.php');
require_once('../_inc/funct.docFile.php');

$mess = '';
$filePath = getDocFilePath(reqVar('type'), reqVar('iddoc'), $mess);
if ($filePath===false) die("Abnormal end - ".$mess);

headerDownLoad(filesize($filePath), basename($filePath));

readfile($filePath);
exit;